package com.example.projectmgmt.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;

public class PhaseDTO {
    @NotBlank(message = "阶段ID不能为空")
    @Size(min = 1, max = 10, message = "阶段ID长度需在1-10之间")
    private String phraseId;

    @NotNull(message = "阶段预算不能为空")
    @PositiveOrZero(message = "阶段预算不能为负数")
    private Integer phraseBudget;

    @NotBlank(message = "阶段描述不能为空")
    @Size(max = 50, message = "阶段描述最多50字符")
    private String phraseDesc;

    // Getters and Setters
    public String getPhraseId() { return phraseId; }
    public void setPhraseId(String phraseId) { this.phraseId = phraseId; }
    public Integer getPhraseBudget() { return phraseBudget; }
    public void setPhraseBudget(Integer phraseBudget) { this.phraseBudget = phraseBudget; }
    public String getPhraseDesc() { return phraseDesc; }
    public void setPhraseDesc(String phraseDesc) { this.phraseDesc = phraseDesc; }
}